# -*- coding: utf-8 -*-

from openerp import models
from openerp.osv import osv, fields, orm

# 扩展销售组的所属公司字段
class crm_case_section_ext(models.Model):
    _name = 'crm.case.section'
    _inherit = 'crm.case.section'
    _columns = {
        'company_id': fields.many2one('res.company', 'Company', required=True),
        }
    _defaults = {
        'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,
        }
